package org.tempuri;

public class UniOPMServiceSoapProxy implements org.tempuri.UniOPMServiceSoap {
  private String _endpoint = null;
  private org.tempuri.UniOPMServiceSoap uniOPMServiceSoap = null;
  
  public UniOPMServiceSoapProxy() {
    _initUniOPMServiceSoapProxy();
  }
  
  public UniOPMServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initUniOPMServiceSoapProxy();
  }
  
  private void _initUniOPMServiceSoapProxy() {
    try {
      uniOPMServiceSoap = (new org.tempuri.UniOPMServiceLocator()).getUniOPMServiceSoap();
      if (uniOPMServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)uniOPMServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)uniOPMServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (uniOPMServiceSoap != null)
      ((javax.xml.rpc.Stub)uniOPMServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.tempuri.UniOPMServiceSoap getUniOPMServiceSoap() {
    if (uniOPMServiceSoap == null)
      _initUniOPMServiceSoapProxy();
    return uniOPMServiceSoap;
  }
  
  public java.lang.String[] getAreaList() throws java.rmi.RemoteException{
    if (uniOPMServiceSoap == null)
      _initUniOPMServiceSoapProxy();
    return uniOPMServiceSoap.getAreaList();
  }
  
  public org.tempuri.Device[] getDevices2(java.lang.String szArea) throws java.rmi.RemoteException{
    if (uniOPMServiceSoap == null)
      _initUniOPMServiceSoapProxy();
    return uniOPMServiceSoap.getDevices2(szArea);
  }
  
  public void getDevices(javax.xml.rpc.holders.BooleanHolder getDevicesResult, javax.xml.rpc.holders.StringHolder szMessage, org.tempuri.holders.ArrayOfDeviceHolder devices) throws java.rmi.RemoteException{
    if (uniOPMServiceSoap == null)
      _initUniOPMServiceSoapProxy();
    uniOPMServiceSoap.getDevices(getDevicesResult, szMessage, devices);
  }
  
  
}